
<div id="content"">
	
	<h1>Account Settings - <i><%= @firstname %> <%= @lastname %></i></h1>
	
	<div style="margin:0 0px 0 0px;">
		
		<div>
		
			<% form_remote_tag :url => {:action => "update_settings" } do -%>
			<table border="0">
			  <tr>
			    <td><h2>Login:</h2></td>
			    <td><h2><%= @username %></h2></td>
			    <td width="90px"></td>
			    <td><h2>Gender:</h2></td>
			    <td><%= select_tag :gender, @genders %></td>
			  </tr>
			  <tr>
			    <td><h2>Password:</h2></td>
			    <td><%= password_field_tag :password, @password %></td>
			    <td width="90px"></td>
			    <td><h2>Class Standing:</h2></td>
			    <td><%= select_tag :standing, @standing %></td>
			  </tr>
			  <tr>
			    <td><h2>Age:</h2></td>
			    <td><%= text_field_tag :age, @age %></td>
			    <td width="90px"></td>
			    <td><h2>Major:</h2></td>
			    <td><%= select_tag :major, @major %></td>
			  </tr>
			  <tr>
			    <td><h2>Address:</h2></td>
			    <td><%= text_field_tag :address, @address %></td>
			    <td width="90px"></td>
			    <td><h2>City:</h2></td>
			    <td><%= text_field_tag :city, @city %></td>
			  </tr>
			  <tr>
			    <td><h2>State:</h2></td>
			    <td><%= text_field_tag :state, @state %></td>
			    <td width="90px"></td>
			    <td><h2>Zip:</h2></td>
			    <td><%= text_field_tag :zip, @zip %></td>
			  </tr>
			  <tr>
			    <td><h2>Phone:</h2></td>
			    <td><%= text_field_tag :phone, @phone %></td>
			    <td width="110px"></td>
			    <td><h2>Email:</h2></td>
			    <td><%= text_field_tag :email, @email %></td>
			  </tr>
			  <tr> </tr><tr> </tr><tr> </tr>
			  <tr>
				<td><%= submit_tag "Save" %></td>
			    <td></td>
			  </tr>
			</table>
			<% end %>
		</div>
		
		<div style="clear:both;"></div>
		<br />
			
		<div style="float:left; position:relative; ">	
			<% if(session[:loginrole] == "Admin") %>
				<% form_remote_tag :url => {:action => "add_major"} do -%>
					<div style="border: dashed 1px #CCC; padding:3px 15px;">
					<h3>Add a Major</h3>
						<table border="0">
						  <tr>
						    <td><%= text_field_tag :newMajor %></td>
						    <td><%= submit_tag "Add" %></td>
						  </tr>
						</table>
					</div>
				<% end %>
				<div style="clear:both;"></div>
				<br />
				<% form_remote_tag :url => {:controller=>"settings", :action => "remove_major"} do -%>
					<div style="border: dashed 1px #CCC; padding:3px 15px;">
					<h3>Remove a Major</h3>
						<table border="0">
						  <tr>
						    <td><%= select_tag :major, @major %></td>
						    <td><%= submit_tag "Remove" %></td>
						  </tr>
						</table>
					</div>
				<% end %>
			<% end %>
		</div>
			
		<div style="float:right; position:relative;">	
			<% if(session[:loginrole] == "Admin") %>
				<% form_remote_tag :url => {:controller=>"settings", :action => "add_standing"} do -%>
					<div style="border: dashed 1px #CCC; padding:3px 15px;">
					<h3>Add Class Standing</h3>
						<table border="0">
						  <tr>
						    <td><%= text_field_tag :newStanding %></td>
						    <td><%= submit_tag "Add" %></td>
						  </tr>
						</table>
					</div>
				<% end %>
				<div style="clear:both;"></div>
				<br />
				<% form_remote_tag :url => {:controller=>"settings", :action => "remove_standing"} do -%>
					<div style="border: dashed 1px #CCC; padding:3px 15px;">
					<h3>Remove a Class Standing</h3>
						<table border="0">
						  <tr>
						    <td><%= select_tag :standing, @standing %></td>
						    <td><%= submit_tag "Remove" %></td>
						  </tr>
						</table>
					</div>
				<% end %>
			<% end %>
		
		</div>
		
	</div>
	


</div>

